package com.hndct.entity.user;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hndct.config.JsonDateSerializer;

import java.math.BigDecimal;
import java.util.Date;

public class BTUserEntity {
    private Integer id;

    private String email;

    private String password;

    private Boolean state;

    private Integer levelId;

    private String recommendId;

    private BigDecimal consumeTotal;

    private String recommendCode;

    private Integer totalRecommend;

    private Integer recommendSuccess;

    private Date createTime;

    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Integer getLevelId() {
        return levelId;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public String getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(String recommendId) {
        this.recommendId = recommendId == null ? null : recommendId.trim();
    }

    public BigDecimal getConsumeTotal() {
        return consumeTotal;
    }

    public void setConsumeTotal(BigDecimal consumeTotal) {
        this.consumeTotal = consumeTotal;
    }

    public String getRecommendCode() {
        return recommendCode;
    }

    public void setRecommendCode(String recommendCode) {
        this.recommendCode = recommendCode == null ? null : recommendCode.trim();
    }

    public Integer getTotalRecommend() {
        return totalRecommend;
    }

    public void setTotalRecommend(Integer totalRecommend) {
        this.totalRecommend = totalRecommend;
    }

    public Integer getRecommendSuccess() {
        return recommendSuccess;
    }

    public void setRecommendSuccess(Integer recommendSuccess) {
        this.recommendSuccess = recommendSuccess;
    }

    @JsonSerialize(using = JsonDateSerializer.class)
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
}